<?php

namespace App\Listeners;

use App\Events\OrderPaidEvent;
use App\Services\CountProductSales\CountProductSales;
use App\Supports\Product\ProductReturnBalance;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class OrderPaidListener
{
    public function handle(OrderPaidEvent $event)
    {
        $order = $event->order;
        $user = $order->user;
	    app(CountProductSales::class)->count($order);

    }
}
